<tagLib name="html" />
<script language="javascript" src="/Public/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<div id="main-content">
    <div id="main" class="main">

            <div class="user-hd">
                <h2>财务管理>>{$page_title}</h2>
            </div>
            <div class="clearfix searchspin">

                    <form action="{:U('Cinema/rechargeList')}" method="get">
                    起止时间：<input type="text" name="create_time_start" id="create_time_start" value="{$_GET['create_time_start']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'create_time_end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
                        <input type="text" name="create_time_end" id="create_time_end" value="{$_GET['create_time_end']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
					充值形式：
					<select name="recharge_from" class="" style="height:30px;">
					  <option value="0" <?php if($_GET['recharge_from']==0){echo "selected";} ?> >-</option>
					  <option value="1" <?php if($_GET['recharge_from']==1){echo "selected";} ?> >银行转账</option>
					  <option value="2" <?php if($_GET['recharge_from']==2){echo "selected";} ?> >现金</option>
					</select>					
                    <input type="text" maxlength="36" name="keywords" value="{$keywords}" placeholder="主机号" class="bg-input" />
					<a href="{:U('Cinema/rechargeList')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
                    <input type="submit" class="sblue-btn" value="检索" />
                    <input type="hidden" name="id" value="{$id}" />

                    <div class="clear"></div>
                    </form>

            </div>
            <div class="spin-cont">
                <p style="padding-bottom:20px;">
                    共充值次数：<span class="text_red">{$recharge_list_data.count}</span> 次；
                    总金额：<span class="text_red">{$recharge_list_data.total_money}</span> 元； 
                </p>
                <table>
                    <tr>
						<th style="width: 180px;">充值时间</th>
                        <th style="width: 180px;">充值流水号</th>
						<th style="width: 180px;">充值主机</th>
						<th style="width: 180px;">充值形式</th>
						<th style="width: 180px;">充值金额</th>
                        <th>操作</th>
                    </tr>
                    <volist name="recharge_list_data[data_list]" id="vo">
                    <tr>
						<td>{$vo.create_time|date="Y-m-d H:i", ###}</td>
						<td>{$vo.sn}</td>
						<td>{$vo.cinema_host_id|getCinemaHostName}</td>
						<td>
							<switch name="vo.recharge_from">
								<case value="1">银行转账</case>
								<case value="2">现金</case>						
							</switch>
						</td>
						<td>{$vo.money}</td>
                        <td><a href="{:U('Cinema/rechargeDetail', array('recharge_log_id'=>$vo[recharge_log_id], 'id'=>$vo[cinema_host_id]))}">详情</a></td>
                    </tr>
                    </volist>
                </table>
                <div class="page txt-center">
                    {$recharge_list_data.pager}
                </div>
            </div>

    </div>
</div>